package com.lagou.controller;

import com.lagou.bean.ConsumerComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author czq
 * @date 2020/9/2 23:00
 */
@RestController
public class HelloController {

    @Autowired
    private ConsumerComponent consumerComponent;

    @RequestMapping("hello")
    public String hello(String name) {
        return consumerComponent.sayHello(name);
    }
}
